CREATE TABLE [dbo].[mWorkcsbase] (
    [pkId] int  IDENTITY(1,1) NOT NULL,
    [wfId] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [deptId] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [deptName] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
    [isDel] int DEFAULT ((0)) NULL,
    [bringTime] datetime  NULL,
    [flagInt] int DEFAULT ((0)) NULL,
    CONSTRAINT [PK__mWorkcsb__40A359C3480EDFEB] PRIMARY KEY CLUSTERED ([pkId])
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
    ON [PRIMARY]
    )
    ON [PRIMARY]
    GO

ALTER TABLE [dbo].[mWorkcsbase] SET (LOCK_ESCALATION = TABLE)
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'抄送件表主键id',
    'SCHEMA', N'dbo',
    'TABLE', N'mWorkcsbase',
    'COLUMN', N'pkId'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'抄送的工单件主键id',
    'SCHEMA', N'dbo',
    'TABLE', N'mWorkcsbase',
    'COLUMN', N'wfId'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'抄送给部门编号',
    'SCHEMA', N'dbo',
    'TABLE', N'mWorkcsbase',
    'COLUMN', N'deptId'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'部门名称',
    'SCHEMA', N'dbo',
    'TABLE', N'mWorkcsbase',
    'COLUMN', N'deptName'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'删除标识',
    'SCHEMA', N'dbo',
    'TABLE', N'mWorkcsbase',
    'COLUMN', N'isDel'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'抄送时间',
    'SCHEMA', N'dbo',
    'TABLE', N'mWorkcsbase',
    'COLUMN', N'bringTime'
    GO

    EXEC sp_addextendedproperty
    'MS_Description', N'标记',
    'SCHEMA', N'dbo',
    'TABLE', N'mWorkcsbase',
    'COLUMN', N'flagInt'